# 字典查找key
a = {
    'id': 1,
    'name': 'he',
    100: 10
}
# in 判断key是否存在
# print('id' in a)
# print('he' in a)

# not in 判断key是否不存在
# print('k' not in a)
# print('id' not in a)

# a[]key访问
print(a['id'])
print(a[100])


